package method_student;

public class MethodDemo02 {
//    不需要返回
    public static void printHelloWorld(int n){
        for (int i = 0; i < n; i++) {
            System.out.println("Hello World");
        }
    }

    public static void main(String[] args) {
        printHelloWorld(5);
        System.out.println("------------------");
        printHelloWorld(3);
    }
}
